import http from './request'

const login = {
  // 用户登录
  userLogin(params) {
    return http.post(`/login`, params)
  },

  // 获取用户下的的菜单树
  treeByUser(id) {
    return http.get(`/sysPermission/treeByUser?userId=${id}`)
  }

}

export default login